home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5970 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: nntp.uio.no!solace!news
  2. From: cmh@lls.se (Magnus Holmgren)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Want to boot FAAAST?
  5. Date: 21 Mar 1996 19:48:02
  6. Organization: Programmers' Point
  7. Message-ID: <4iup7r$e79@fizban.solace.mh.se>
  8. References: <4irl0n$1dng@columba.udac.uu.se>
  9. NNTP-Posting-Host: myrddin.lls.se
  10. Mime-Version: 1.2
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8BIT
  13. X-FTN-To: Erik Trulsson
  14. X-Newsreader: Spot 1.3a #26/NetGate 1.2
  15.  
  16. In a message of 21 Mar 96, Erik wrote to :
  17.  
  18.  ET> That is a very common (and natural) misconception.
  19.  ET> The 1024 bytes block size reported bt RAM: is a lie from the filesystem.
  20.  
  21. And it confuses the Workbench. ;)
  22.  
  23.  ET> The ram disk doesn't use fixed blocks to hold the files, it only uses
  24.  ET> the amount of memory that is actually needed (plus some small overhead
  25.  ET> most likely) If you want to test this you can do what I did, namely
  26.  ET> create something like 2000 small files in RAM: and check the amount of
  27.  ET> free memory before and after. When I did this the amount of free memory
  28.  ET> only decreased by a couple of hundred K. If RAM: had actually used 1024
  29.  ET> byte blocks like a normal disk, free memory should have decreased by 4
  30.  ET> Megabytes, but it didn't. To sum it up: putting a large amount of small
  31.  ET> files in RAM: does not use up much more memory than the actual size of
  32.  ET> those files. (plus some memory for storing the names and sizes of the
  33.  ET> files and that kind of stuff)
  34.  
  35. I tried this myself, and found the per-file overhead to be somewhere
  36. between 100 and 200 bytes, which I find quite reasonable.
  37.  
  38. However, if you create _empty_ files, you get an overhead on at least 1 KB
  39. per file, which is quite a difference.. ;)
  40.  
  41. --
  42. Magnus Holmgren - Amiga programmer and enthusiast
  43.  
  44.  
  45.